const request = require('../utils/request.js');

export function queryAll() {
  return request({
    url: '/userCoupon', 
  });
}

export function add(data) {
  return request({
    url: '/userCoupon', 
    method: 'POST',
    data: data,
  });
}

export function queryByUserIdCoupon() {
  return request({
    url: '/userCoupon/userId',
    method: 'GET'
  });
}